package main

import (
	"fmt"
	"unsafe"
)

const (
	D = "abc"
	E = len(D)
	F = unsafe.Sizeof(D)
)

func main() {
	const LENGTH int = 10
	const WIDTH int = 5
	var area int
	const a, b, c = 1, false, "str" //多重赋值

	area = LENGTH * WIDTH
	fmt.Printf("面积为 : %d", area)
	println()
	println(a, b, c)

	const (
		Unknown = iota
		Female  = iota
		Male    = iota
	)

	const (
		U = iota

		F = iota

		M = iota
	)

	println(Unknown, Female, Male)
	println(U, F, M)
	println(D, E, F)
}
